package com.example.kaogong.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 课程视频
 * </p>
 *
 * @author  
 * @since 2022-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_course_video")
@ApiModel(value="CourseVideo对象", description="")
public class CourseVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频编号")
    private Integer videoId;

    @NotNull(message = "课程编号不能为空")
    @ApiModelProperty(value = "课程编号", required = true)
    private Integer courseId;

    @NotBlank(message = "视频名称不能为空")
    @ApiModelProperty(value = "视频名称", required = true)
    private String videoName;

    @NotBlank(message = "视频地址不能为空")
    @ApiModelProperty(value = "视频地址",required = true)
    private String videoUrl;


}
